<?php
	include_once('../vendor/autoload.php');

    // $loader = new \Twig\Loader\ArrayLoader([
    //     'index' => 'Hello {{ name }}!',
    // ]);
    // $twig = new \Twig\Environment($loader);

    // echo $twig->render('index', ['name' => 'Fabien']);


    $loader = new \Twig\Loader\FilesystemLoader('templates');
    $twig = new \Twig\Environment($loader, [
        'cache' => 'compilation_cache',
    ]);

    echo $twig->render('index.html', ['name' => 'Fabien']);
?>